// UserGroupSet.cpp : implementation file
//

#include "stdafx.h"
#include "KWServerCore.h"
#include "UserGroupSet.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CUserGroupSet

//IMPLEMENT_DYNAMIC(CUserGroupSet, CThreadSafeRecordset)

CUserGroupSet::CUserGroupSet/*(CDatabase* pdb)
	: CThreadSafeRecordset(pdb)*/(CAdoConnection *pConnection)
	: CAdoRecordSet(pConnection)
{
	m_pConnection = pConnection;

	//{{AFX_FIELD_INIT(CUserGroupSet)
	m_Description = _T("");
	m_Permission = 0;
	m_Id = 0;
	//m_nFields = 3;
	//}}AFX_FIELD_INIT
	//m_nDefaultType = snapshot;
}


CString CUserGroupSet::GetDefaultConnect()
{
  return _T("ODBC;DSN=KWSystem;UID=kwuser;PWD=1234");

}

CString CUserGroupSet::GetDefaultSQL()
{
	return _T("[dbo].[UserGroup]");
}

void CUserGroupSet::DoFieldExchange(CFieldExchange* pFX)
{
	//{{AFX_FIELD_MAP(CUserGroupSet)
	pFX->SetFieldType(CFieldExchange::outputColumn);
	RFX_Text(pFX, _T("[Description]"), m_Description);
	RFX_Long(pFX, _T("[Permission]"), m_Permission);
	RFX_Long(pFX, _T("[Id]"), m_Id);
	//}}AFX_FIELD_MAP
}

/////////////////////////////////////////////////////////////////////////////
// CUserGroupSet diagnostics

#ifdef _DEBUG
void CUserGroupSet::AssertValid() const
{
	//CThreadSafeRecordset::AssertValid();
}

void CUserGroupSet::Dump(CDumpContext& dc) const
{
//	CThreadSafeRecordset::Dump(dc);
}
#endif //_DEBUG
